package com.jic.market.service;

import com.jic.common.base.vo.PageResult;
import com.jic.common.base.vo.RestResult;
import com.jic.market.request.*;
import com.jic.market.response.MaterialCategoryFirstInfo;
import com.jic.market.response.MaterialCategoryTreeResponse;

/**
* 素材分类表
* @author : 
* @email : 
* @since : 2020-02-27 04:39:42
* @version : v1.0.0
*/
public interface MaterialCategoryService {

    //分页查询
    RestResult<PageResult<MaterialCategoryFirstInfo>> queryPage(MaterialCategoryQueryRequest request);

    //添加
    RestResult<Long> add(MaterialCategoryAddRequest request);

    //编辑
    RestResult<Long> edit(MaterialCategoryEditRequest request);

    //删除
    RestResult<Long> delete(MaterialCategoryDeleteRequest request);

    //查询素材树
    RestResult<MaterialCategoryTreeResponse> queryTree(MaterialCategoryTreeRequest request);

}